﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WanMeiModel
{
    class ChatModel
    {
    }
    /// <summary>
    /// 消息模型基类
    /// </summary>
    public class ChatBaseModel
    {
        /// <summary>
        /// 消息发送人的链接ID
        /// </summary>
        public string SendConnectionId { get; set; }
        /// <summary>
        /// 消息发送人发送的消息
        /// </summary>
        public string SendMsg { get; set; }
        /// <summary>
        /// 消息类型1.所有人，2私聊，3工会
        /// </summary>
        public int ChatType { get; set; }
    }
    /// <summary>
    /// 发送消息业务模型
    /// </summary>
    public class SendModel:ChatBaseModel
    {
        
        /// <summary>
        /// 消息发送时间
        /// </summary>
        public DateTime SendTime { get; set; }
       
        /// <summary>
        /// 被私聊的连接ID。
        /// </summary>
        public string ToConnectionId { get; set; }
        /// <summary>
        /// 接收者角色名称
        /// </summary>
        public string ToRoleName { get; set; }
       
    }
    /// <summary>
    /// 通知客户端消息模型
    /// </summary>
    public class ReceiveModel:ChatBaseModel
    {
        public int GameLevel { get; set; }
        /// <summary>
        /// 消息发送认昵称
        /// </summary>
        public string SendRoleName { get; set; }
        /// <summary>
        /// 消息发送人职称
        /// </summary>
        public string SendRoleLevelTitle { get; set; }
        /// <summary>
        /// 消息发送人VIP级别
        /// </summary>
        public int SendRoleLevelVip { get; set; }

        public string Un { get; set; }
        /// <summary>
        /// 接收者角色名称
        /// </summary>
        public string ToRoleName { get; set; }

        public int HeroId { get; set; }
    }

    public class ChatLogModel
    {
        public int HeroId { get; set; }
        public string Un { get; set; }
        public string Nick { get; set; }
        public string SendMsg { get; set; }
        public int ChatType { get; set; }
    }
}
